// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package edu.uoc.tfc.dbmodel;
/**
 * @see edu.uoc.tfc.dbmodel.Factura
 */
public class FacturaDaoImpl
    extends edu.uoc.tfc.dbmodel.FacturaDaoBase
{
    /**
     * @see edu.uoc.tfc.dbmodel.FacturaDao#toFacturaVO(edu.uoc.tfc.dbmodel.Factura, edu.uoc.tfc.dto.FacturaVO)
     */
    public void toFacturaVO(
        edu.uoc.tfc.dbmodel.Factura source,
        edu.uoc.tfc.dto.FacturaVO target)
    {
        // @todo verify behavior of toFacturaVO
        super.toFacturaVO(source, target);
        // WARNING! No conversion for target.partDeLaFactura (can't convert source.getPartDeLaFactura():edu.uoc.tfc.dbmodel.Part to edu.uoc.tfc.dto.PartVO
    }


    /**
     * @see edu.uoc.tfc.dbmodel.FacturaDao#toFacturaVO(edu.uoc.tfc.dbmodel.Factura)
     */
    public edu.uoc.tfc.dto.FacturaVO toFacturaVO(final edu.uoc.tfc.dbmodel.Factura entity)
    {
        // @todo verify behavior of toFacturaVO
        return super.toFacturaVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private edu.uoc.tfc.dbmodel.Factura loadFacturaFromFacturaVO(edu.uoc.tfc.dto.FacturaVO facturaVO)
    {
        // @todo implement loadFacturaFromFacturaVO
        throw new java.lang.UnsupportedOperationException("edu.uoc.tfc.dbmodel.loadFacturaFromFacturaVO(edu.uoc.tfc.dto.FacturaVO) not yet implemented.");

        /* A typical implementation looks like this:
        edu.uoc.tfc.dbmodel.Factura factura = this.load(facturaVO.getId());
        if (factura == null)
        {
            factura = edu.uoc.tfc.dbmodel.Factura.Factory.newInstance();
        }
        return factura;
        */
    }

    
    /**
     * @see edu.uoc.tfc.dbmodel.FacturaDao#facturaVOToEntity(edu.uoc.tfc.dto.FacturaVO)
     */
    public edu.uoc.tfc.dbmodel.Factura facturaVOToEntity(edu.uoc.tfc.dto.FacturaVO facturaVO)
    {
        // @todo verify behavior of facturaVOToEntity
        edu.uoc.tfc.dbmodel.Factura entity = this.loadFacturaFromFacturaVO(facturaVO);
        this.facturaVOToEntity(facturaVO, entity, true);
        return entity;
    }


    /**
     * @see edu.uoc.tfc.dbmodel.FacturaDao#facturaVOToEntity(edu.uoc.tfc.dto.FacturaVO, edu.uoc.tfc.dbmodel.Factura)
     */
    public void facturaVOToEntity(
        edu.uoc.tfc.dto.FacturaVO source,
        edu.uoc.tfc.dbmodel.Factura target,
        boolean copyIfNull)
    {
        // @todo verify behavior of facturaVOToEntity
        super.facturaVOToEntity(source, target, copyIfNull);
    }

}